<!DOCTYPE html>
<html lang="zh-CN">
    <head>
        <meta charset="UTF-8" />
        <title>08_判断变量的数据类型-tostring</title>
    </head>
    <body>
        <script>
            console.log(Object.prototype.toString.call('abc'));
            console.log(Object.prototype.toString.call(123));
            console.log(Object.prototype.toString.call(true));
            console.log(Object.prototype.toString.call(undefined));
            console.log(Object.prototype.toString.call(null));
            console.log(Object.prototype.toString.call([]));
            console.log(Object.prototype.toString.call({}));
            function f1() {}
            console.log(Object.prototype.toString.call(f1));

        </script>
    </body>
</html>